package com.zaydanwu.cla.model;

import java.io.Serializable;

/**
 * empty_classroom
 * @author 
 */
public class EmptyClassroom implements Serializable {
    private Long id;

    /**
     * 校区
     */
    private String village;

    private String teachingBuilding;

    private String classroom;

    private Integer empty;

    private String freeTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getTeachingBuilding() {
        return teachingBuilding;
    }

    public void setTeachingBuilding(String teachingBuilding) {
        this.teachingBuilding = teachingBuilding;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public Integer getEmpty() {
        return empty;
    }

    public void setEmpty(Integer empty) {
        this.empty = empty;
    }

    public String getFreeTime() {
        return freeTime;
    }

    public void setFreeTime(String freeTime) {
        this.freeTime = freeTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EmptyClassroom other = (EmptyClassroom) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getVillage() == null ? other.getVillage() == null : this.getVillage().equals(other.getVillage()))
            && (this.getTeachingBuilding() == null ? other.getTeachingBuilding() == null : this.getTeachingBuilding().equals(other.getTeachingBuilding()))
            && (this.getClassroom() == null ? other.getClassroom() == null : this.getClassroom().equals(other.getClassroom()))
            && (this.getEmpty() == null ? other.getEmpty() == null : this.getEmpty().equals(other.getEmpty()))
            && (this.getFreeTime() == null ? other.getFreeTime() == null : this.getFreeTime().equals(other.getFreeTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getVillage() == null) ? 0 : getVillage().hashCode());
        result = prime * result + ((getTeachingBuilding() == null) ? 0 : getTeachingBuilding().hashCode());
        result = prime * result + ((getClassroom() == null) ? 0 : getClassroom().hashCode());
        result = prime * result + ((getEmpty() == null) ? 0 : getEmpty().hashCode());
        result = prime * result + ((getFreeTime() == null) ? 0 : getFreeTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", village=").append(village);
        sb.append(", teachingBuilding=").append(teachingBuilding);
        sb.append(", classroom=").append(classroom);
        sb.append(", empty=").append(empty);
        sb.append(", freeTime=").append(freeTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}